
import socket
#客户端
if __name__ == '__main__':
    s=socket.socket()
    s.connect(("192.168.100.85",9998))
    print("启动完成",s)
    while True:
        words=input("请输入你要说的话：")
        s.sendall(words.encode())
        reply=s.recv(2048).decode()
        print("服务器回复：",reply)
        if words=="exit":
            break
    s.close()